/**
 * Copyright 2025 Adobe. All rights reserved.
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
 * OF ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

:host([size="s"]) #list {
    --spectrum-tabs-item-height: var(--spectrum-tab-item-height-small);
    --spectrum-tabs-item-horizontal-spacing: var(--spectrum-tab-item-to-tab-item-horizontal-small);
    --spectrum-tabs-item-vertical-spacing: var(--spectrum-tab-item-to-tab-item-vertical-small);
    --spectrum-tabs-start-to-edge: var(--spectrum-tab-item-start-to-edge-small);
    --spectrum-tabs-top-to-text: var(--spectrum-tab-item-top-to-text-small);
    --spectrum-tabs-bottom-to-text: var(--spectrum-tab-item-bottom-to-text-small);
    --spectrum-tabs-icon-size: var(--spectrum-workflow-icon-size-50);
    --spectrum-tabs-icon-to-text: var(--spectrum-text-to-visual-75);
    --spectrum-tabs-top-to-icon: var(--spectrum-tab-item-top-to-workflow-icon-small);
    --spectrum-tabs-focus-indicator-gap: var(--spectrum-tab-item-focus-indicator-gap-small);
    --spectrum-tabs-font-size: var(--spectrum-font-size-75);
}

:host([size="l"]) #list {
    --spectrum-tabs-item-height: var(--spectrum-tab-item-height-large);
    --spectrum-tabs-item-horizontal-spacing: var(--spectrum-tab-item-to-tab-item-horizontal-large);
    --spectrum-tabs-item-vertical-spacing: var(--spectrum-tab-item-to-tab-item-vertical-large);
    --spectrum-tabs-start-to-edge: var(--spectrum-tab-item-start-to-edge-large);
    --spectrum-tabs-top-to-text: var(--spectrum-tab-item-top-to-text-large);
    --spectrum-tabs-bottom-to-text: var(--spectrum-tab-item-bottom-to-text-large);
    --spectrum-tabs-icon-size: var(--spectrum-workflow-icon-size-100);
    --spectrum-tabs-icon-to-text: var(--spectrum-text-to-visual-200);
    --spectrum-tabs-top-to-icon: var(--spectrum-tab-item-top-to-workflow-icon-large);
    --spectrum-tabs-focus-indicator-gap: var(--spectrum-tab-item-focus-indicator-gap-large);
    --spectrum-tabs-font-size: var(--spectrum-font-size-200);
}

:host([size="xl"]) #list {
    --spectrum-tabs-item-height: var(--spectrum-tab-item-height-extra-large);
    --spectrum-tabs-item-horizontal-spacing: var(--spectrum-tab-item-to-tab-item-horizontal-extra-large);
    --spectrum-tabs-item-vertical-spacing: var(--spectrum-tab-item-to-tab-item-vertical-extra-large);
    --spectrum-tabs-start-to-edge: var(--spectrum-tab-item-start-to-edge-extra-large);
    --spectrum-tabs-top-to-text: var(--spectrum-tab-item-top-to-text-extra-large);
    --spectrum-tabs-bottom-to-text: var(--spectrum-tab-item-bottom-to-text-extra-large);
    --spectrum-tabs-icon-size: var(--spectrum-workflow-icon-size-200);
    --spectrum-tabs-icon-to-text: var(--spectrum-text-to-visual-300);
    --spectrum-tabs-top-to-icon: var(--spectrum-tab-item-top-to-workflow-icon-extra-large);
    --spectrum-tabs-focus-indicator-gap: var(--spectrum-tab-item-focus-indicator-gap-extra-large);
    --spectrum-tabs-font-size: var(--spectrum-font-size-300);
}

:host([size="s"]) #list.spectrum-Tabs--compact {
    --mod-tabs-item-height: var(--mod-tabs-item-height-compact, var(--spectrum-tab-item-compact-height-small));
    --mod-tabs-top-to-text: var(--mod-tabs-top-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-small));
    --mod-tabs-bottom-to-text: var(--mod-tabs-bottom-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-small));
    --mod-tabs-top-to-icon: var(--mod-tabs-top-to-icon-compact, var(--spectrum-tab-item-top-to-workflow-icon-compact-small));
}

:host([size="l"]) #list.spectrum-Tabs--compact {
    --mod-tabs-item-height: var(--mod-tabs-item-height-compact, var(--spectrum-tab-item-compact-height-large));
    --mod-tabs-top-to-text: var(--mod-tabs-top-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-large));
    --mod-tabs-bottom-to-text: var(--mod-tabs-bottom-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-large));
    --mod-tabs-top-to-icon: var(--mod-tabs-top-to-icon-compact, var(--spectrum-tab-item-top-to-workflow-icon-compact-large));
}

:host([size="xl"]) #list.spectrum-Tabs--compact {
    --mod-tabs-item-height: var(--mod-tabs-item-height-compact, var(--spectrum-tab-item-compact-height-extra-large));
    --mod-tabs-top-to-text: var(--mod-tabs-top-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-extra-large));
    --mod-tabs-bottom-to-text: var(--mod-tabs-bottom-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-extra-large));
    --mod-tabs-top-to-icon: var(--mod-tabs-top-to-icon-compact, var(--spectrum-tab-item-top-to-workflow-icon-compact-extra-large));
}
